package com.itfreer.xjmh.temporary.entity;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.itfreer.form.api.entity.EntityBase;
import com.itfreer.form.api.reflect.DictionaryField;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;

/**
 * 定义空中安保数据实体
 */
@Entity(name = "t_temp_air")
public class TemporaryAirEntity extends EntityBase implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@Id
	@Column(name = "id", length = 50, nullable = true)
	private String id;

	/**
	 * 所属机场---字典
	 */
	@Column(name = "airport", length = 50, nullable = true)
	@DictionaryField(dictionaryName = "zd_airport", toFieldName = "airportName")
	private String airport;

	@Column(name = "airport_name", length = 50, nullable = true)
	private String airportName;
	
	/**
	 * 派遣空警(人次)
	 */
	@Column(name = "send_police", nullable = true)
	private Integer sendpolice;
	
	/**
	 * 派遣安全员(人次)
	 */
	@Column(name = "send_security_person", nullable = true)
	private Integer sendsecurityperson;
	
	/**
	 * 处置飞行中非法干扰事件(起)
	 */
	@Column(name = "illegal_event", nullable = true)
	private Integer illegalevent;
	
	/**
	 * 处置飞行中扰乱事件
	 */
	@Column(name = "disturb_event", nullable = true)
	private Integer disturbevent;
	

	/**
	 * 租户ID
	 */
	@Column(name = "s_tenantID", length = 50, nullable = true)
	private String tenantID;

	/**
	 * 租户名称
	 */
	@Column(name = "s_tenantName", length = 50, nullable = true)
	private String tenantName;


	/**
	 * 创建人ID
	 */
	@Column(name = "s_createUserid", length = 50, nullable = true)
	private String createUserid;
	
	/**
	 * 创建人
	 */
	@Column(name = "s_createUsername", length = 50, nullable = true)
	private String createUsername;
	
	/**
	 * 创建时间
	 */
	@JsonFormat(pattern="yyyy-MM-dd", locale="zh", timezone="GMT+8")
	@Column(name = "s_createTime", nullable = true)
	private java.util.Date createTime;

	/**
	 * 临时工作时间
	 */
	@JsonFormat(pattern="yyyy-MM-dd", locale="zh", timezone="GMT+8")
	@Column(name = "s_temporaryTime", nullable = true)
	private java.util.Date temporaryTime;

	/**
	 * 主键
	 */
	@Override
	public String getId() {
		return id;
	}

	/**
	 * 主键
	 */
	@Override
	public void setId(String value) {
		this.id = value;
	}
	
	
	/**
	 * 派遣空警(人次)
	 */
	public Integer getSendpolice() {
		return sendpolice;
	}

	/**
	 * 派遣空警(人次)
	 */
	public void setSendpolice(Integer value) {
		this.sendpolice = value;
	}
	/**
	 * 派遣安全员(人次)
	 */
	public Integer getSendsecurityperson() {
		return sendsecurityperson;
	}

	/**
	 * 派遣安全员(人次)
	 */
	public void setSendsecurityperson(Integer value) {
		this.sendsecurityperson = value;
	}
	/**
	 * 处置飞行中非法干扰事件(起)
	 */
	public Integer getIllegalevent() {
		return illegalevent;
	}

	/**
	 * 处置飞行中非法干扰事件(起)
	 */
	public void setIllegalevent(Integer value) {
		this.illegalevent = value;
	}
	/**
	 * 处置飞行中扰乱事件
	 */
	public Integer getDisturbevent() {
		return disturbevent;
	}

	/**
	 * 处置飞行中扰乱事件
	 */
	public void setDisturbevent(Integer value) {
		this.disturbevent = value;
	}

	public String getAirport() {
		return airport;
	}

	public void setAirport(String airport) {
		this.airport = airport;
	}

	public String getAirportName() {
		return airportName;
	}

	public void setAirportName(String airportName) {
		this.airportName = airportName;
	}

	/**
	 * 租户ID
	 */
	@Override
	public String getTenantID() {
		return tenantID;
	}
	
	/**
	 * 租户ID
	 */
	@Override
	public void setTenantID(String tenantID) {
		this.tenantID = tenantID;
	}

	/**
	 * 租户名称
	 */
	@Override
	public String getTenantName() {
		return tenantName;
	}
	
	/**
	 * 租户名称
	 */
	@Override
	public void setTenantName(String tenantName) {
		this.tenantName = tenantName;
	}


	/**
	 * 设置创建时间值
	 */
	@Override
	public void setCreateTime(java.util.Date time) {
		this.createTime = time;
	}
	
	public java.util.Date getCreateTime() {
		return this.createTime;
	}

	/**
	 * 设置创建人值
	 */
	@Override
	public void setCreateUserID(String userID) {
		this.createUserid = userID;
	}
	
	public String getCreateUserID() {
		return this.createUserid;
	}

	/**
	 * 设置创建人值
	 */
	@Override
	public void setCreateUserName(String userName) {
		this.createUsername = userName;
	}
	
	public String getCreateUserName() {
		return this.createUsername;
	}

	public Date getTemporaryTime() {
		return temporaryTime;
	}

	public void setTemporaryTime(Date temporaryTime) {
		this.temporaryTime = temporaryTime;
	}
}
